<?php /* Smarty version Smarty-3.1.18, created on 2015-07-11 00:29:55
         compiled from "D:\WWW\yf_qiaqia\Admin\View\Goods\brand.html" */ ?>
<?php /*%%SmartyHeaderCode:5653559fe63ec90fa1-14311290%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9713ac031c9674a7dafd1d417bf8b384f8512ebc' => 
    array (
      0 => 'D:\\WWW\\yf_qiaqia\\Admin\\View\\Goods\\brand.html',
      1 => 1436545791,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5653559fe63ec90fa1-14311290',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_559fe63ede8bf2_53971869',
  'variables' => 
  array (
    '_C' => 0,
    'art' => 0,
    'id' => 0,
    '_L' => 0,
    'action' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_559fe63ede8bf2_53971869')) {function content_559fe63ede8bf2_53971869($_smarty_tpl) {?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css" />
	</head>

	<body>
		<div class="am-g">
			<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌名称</label>
						<div class="am-u-sm-9">
							<input type="text" name="brand_name" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['brand_name'];?>
">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">英文名称</label>
						<div class="am-u-sm-9">
							<input type="text" class='hy-js-enname' name="en_name" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['en_name'];?>
">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌首字母:</label>
						<div class="am-u-sm-9">
							<select class="hy-js-letter" name="first_letter">
								<option value="#">#</option>
								<option value="A" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='A') {?> selected <?php }?>>A</option>
								<option value="B" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='B') {?> selected <?php }?>>B</option>
								<option value="C" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='C') {?> selected <?php }?>>C</option>
								<option value="D" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='D') {?> selected <?php }?>>D</option>
								<option value="E" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='E') {?> selected <?php }?>>E</option>
								<option value="F" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='F') {?> selected <?php }?>>F</option>
								<option value="G" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='G') {?> selected <?php }?>>G</option>
								<option value="H" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='H') {?> selected <?php }?>>H</option>
								<option value="I" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='I') {?> selected <?php }?>>I</option>
								<option value="J" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='J') {?> selected <?php }?>>J</option>
								<option value="K" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='K') {?> selected <?php }?>>K</option>
								<option value="L" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='L') {?> selected <?php }?>>L</option>
								<option value="M" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='M') {?> selected <?php }?>>M</option>
								<option value="N" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='N') {?> selected <?php }?>>N</option>
								<option value="O" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='O') {?> selected <?php }?>>O</option>
								<option value="P" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='P') {?> selected <?php }?>>P</option>
								<option value="Q" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='Q') {?> selected <?php }?>>Q</option>
								<option value="R" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='R') {?> selected <?php }?>>R</option>
								<option value="S" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='S') {?> selected <?php }?>>S</option>
								<option value="T" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='T') {?> selected <?php }?>>T</option>
								<option value="U" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='U') {?> selected <?php }?>>U</option>
								<option value="V" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='V') {?> selected <?php }?>>V</option>
								<option value="W" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='W') {?> selected <?php }?>>W</option>
								<option value="X" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='X') {?> selected <?php }?>>X</option>
								<option value="Y" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='Y') {?> selected <?php }?>>Y</option>
								<option value="Z" <?php if ($_smarty_tpl->tpl_vars['art']->value['first_letter']=='Z') {?> selected <?php }?>>Z</option>
							</select>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌logo</label>
						<div class="am-u-sm-4">
							<input type="text" name="brand_logo" class="am-input-sm" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['brand_logo'];?>
">

						</div>
						<div class="am-u-sm-1">
							<img id="hy-thumb" class="hy-js-cutimg" style="height: 30px;" <?php if ($_smarty_tpl->tpl_vars['art']->value['brand_logo']) {?>src="<?php echo $_smarty_tpl->tpl_vars['art']->value['brand_logo'];?>
" <?php } else { ?> src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
images/logo2.png" <?php }?>>
						</div>
						<div class="am-u-sm-4 am-u-end">
							<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg">上传</button>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌简述</label>
						<div class="am-u-sm-9">
							<textarea  rows="5" name="brand_desc"><?php echo $_smarty_tpl->tpl_vars['art']->value['brand_desc'];?>
</textarea>
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">品牌网址:</label>
						<div class="am-u-sm-9">
							<input type="text" name="site_url" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['site_url'];?>
" placeholder="http://">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">是否显示</label>
						<div class="am-u-sm-9">
							<div class="am-btn-group" data-am-button="">
								<label class="am-btn am-btn-default am-btn-xs  <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==1) {?> am-active<?php } else { ?><?php }?><?php } else { ?> am-active<?php }?>">
									<input type="radio" name="is_show" value="1" <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']) {?><?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==1) {?> checked="checked" <?php } else { ?><?php }?><?php } else { ?> checked="checked" <?php }?> id="option1"> 显示
								</label>
								<label class="am-btn am-btn-default am-btn-xs  <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==-1) {?>am-active<?php } else { ?><?php }?>">
									<input type="radio" name="is_show" <?php if ($_smarty_tpl->tpl_vars['art']->value['is_show']==-1) {?> checked="checked" <?php } else { ?><?php }?> value="-1" id="option2">不显示
								</label>
							</div>
						</div>
					</div>

					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
						<input type="hidden" name="id" id="id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" />
							<button type="button" class="am-btn am-btn-primary hy-js-submit"><?php echo $_smarty_tpl->tpl_vars['_L']->value['SAVE'];?>
</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<script type="text/javascript">
		$('.hy-js-enname').keyup(function(){
			var val=$(this).val();
			var letter=val.substr(0,1).toUpperCase();
			$('.hy-js-letter').val(letter);
		});
			hy_uploadimg('/brands',{},function(result){
		    	if(typeof(result[0])!='undefined')
		    	{
		        	$('#hy-thumb').attr('src',result[0]);
		        	$('input[name=brand_logo]').val(result[0]).focus();
		       }
		    })
			   hy_submit('index.php?g=admin&m=goods&a=<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
');
		</script>
	</body>

</html><?php }} ?>
